<?php
abstract class Page
{
    public function __construct ()
    {
        $this->uri = G::uri();
        //$this->db = new PDO(_DSN);
        //$this->db = new PDO(_DSN, _USER, _PWD, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
        $this->_parse_parameters();
    }

    abstract protected function _parse_parameters();
    abstract protected function _index();

    public function default_action ()
    {
        return $this->_index();
    }

}
